/*-------------------<-- Start of Description-->---------------------\ | Determine if a macro variable is defined; | | The defined macro returns a value of 0 (false) if the argument is | | the name of a non-existent macro variable. It returns a 1 if the | | macro variable does exist. | |---------------------<-- End of Description-->----------------------| |--------------------------------------------------------------------| |------------<-- Start of Files or Arguments Needed-->---------------| | arguments: | | name - macro name; | |-------------<-- End of Files or Arguments Needed-->---------------*/ %macro defined(name); %if %nrquote(&&&name)=%nrstr(&)&name %then 0; %else 1; %mend;